<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	xmlns:sec="http://www.springframework.org/security/facelets/tags">


<ui:composition>
	<f:loadBundle basename="br.ucb.musicbay.recursos.messages" var="msg" />
	<sec:ifAnyGranted roles="ROLE_ADMIN">
		<h:form>
			<p:menu style="width:200px">
				<p:submenu label="#{msg.administrar} #{msg.user}">
					<p:menuitem value="#{msg.editar} #{msg.user}" action="/restrict/usuarioEditar"
						title="#{msg.editar}" ajax="false" icon="ui-icon-wrench" immediate="true" />
				</p:submenu>
				<p:submenu label="#{msg.administrar} #{msg.cadastros}">
					<p:menuitem value="#{msg.artistas}" action="/admin/cadastro/cadastroArtista" ajax="false"
						icon="ui-icon-person" styleClass="menuLabel" />
					<p:menuitem value="#{msg.albuns}" action="/admin/cadastro/cadastroAlbum" ajax="false"
						icon="ui-icon-bookmark" styleClass="menuLabel" />
					<p:menuitem value="#{msg.musicas}" action="/admin/cadastro/cadastroMusica" ajax="false"
						icon="ui-icon-circle-triangle-e" />
					<p:menuitem value="#{msg.generos}" action="/admin/cadastro/cadastroGenero" ajax="false"
						icon="ui-icon-contact" styleClass="menuLabel" />
				</p:submenu>
				<p:submenu label="#{msg.listaCadastro}">
					<p:menuitem value="#{msg.artistas}" action="/admin/listas/listaArtista" ajax="false"
						icon="ui-icon-person" />
					<p:menuitem value="#{msg.albuns}" action="/admin/listas/listaAlbum" ajax="false"
						icon="ui-icon-bookmark" />
					<p:menuitem value="#{msg.musicas}" action="/admin/listas/listaMusica" ajax="false"
						icon="ui-icon-circle-triangle-e" />
				</p:submenu>
				<p:submenu label="#{msg.users}">
					<p:menuitem value="#{msg.listaUsers}" action="/admin/listas/listaUsuario" ajax="false"
						icon="ui-icon-battery-1" />
				</p:submenu>

			</p:menu>
		</h:form>
	</sec:ifAnyGranted>
</ui:composition>
</html>